package zhaoche.gps.common;

import java.beans.PropertyVetoException;

import lrq.common.PropertiesUnit;
import lrq.data.DbExecuter;
import lrq.data.PostgreSqlExecuter;

public class DbManager 
{
	static DbExecuter postgreExecuter = null;
	static DbExecuter mssqlExecuter = null;
	
	public static void Init()
	{
		String postgreConnStr = PropertiesUnit.getValue("postgreDbConnStr");
		try {
			postgreExecuter = new PostgreSqlExecuter(postgreConnStr);
		} catch (PropertyVetoException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
	public static DbExecuter getpostgreExecuter()
	{
		return postgreExecuter;
	}
	
	public static DbExecuter getmssqlExecuter()
	{
		return mssqlExecuter;
	}
}